home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / linux / lnxinfo.zip / FAQFEB93.P2 < prev    next >
Internet Message Format  |  1993-03-03  |  43KB

  1. Path: labri.greco-prog.fr!corsini
  2. Newsgroups: news.answers,comp.answers,comp.os.linux,comp.os.linux.announce
  3. Distribution: world
  4. Followup-To: poster
  5. From: corsini@labri.greco-prog.fr
  6. Reply-To: linux@numero6.greco-prog.fr
  7. Organization: Greco Prog. CNRS & LaBRI, Bordeaux France
  8. Subject: Linux Frequently Asked Questions 2/4 [monthly posted]
  9. Approved: news-answers-request@MIT.Edu
  10. Summary: Linux, a small and free unix-like for 386-AT computers.
  11.  
  12. Archive-name: linux-faq/part2
  13.  
  14. Last-Modified: 93/02/11
  15. Version: 1.16
  16.  
  17. *********************************************************
  18. *                            *
  19. *   Answers to Frequently asked questions about Linux   *
  20. *                            *
  21. *********************************************************
  22.  
  23. This post contains Part 2 of the Linux FAQ (4 parts).
  24. It must be read *after* the first part. 
  25.  
  26. ================================8<=====8<==============================
  27. CONTENTS (of this part)
  28.  
  29.     IV.    LINUX and DOS                (part2)
  30.     V.    SOME CLASSICAL PROBLEMS            (part2)
  31.     VI.    MISCELLANEOUS HINTS            (part2)
  32.     VII.    MORE HINTS                (part2)
  33.  
  34. ===================================8<====>8============================
  35.  
  36. IV. LINUX and DOS 
  37. =================
  38. *** This section is co-written by Mark Komarinski, A. V. Le Blanc and
  39. *** MM. Corsini. The official maintainer is Mark, if you have *any*
  40. *** questions, mail him at komarimf@craft.camp.clarkson.edu 
  41. *** Last Update 02.02.93
  42.  
  43.  
  44. QUESTION: Is is possible to access DOS from Linux?
  45.  
  46. ANSWER: Yes.  
  47. (1) The mtools package allows you to access DOS files;
  48. it emulates the DOS commands CD, COPY, DEL, DIR, TYPE, and others.
  49. (2)  Since approximately version 0.97 of the kernel, you can mount
  50. DOS file systems as part of your Linux directory tree, providing you
  51. have an appropriate mount command.  
  52. (3)  A DOS emulator is in alpha test, which will allow some DOS programs
  53. and utilities to run under Linux. 
  54.  
  55.  
  56. QUESTION: Why use mtools if you can just mount a drive?
  57.  
  58. ANSWER: Mtools is good if you want to do something quickly.  For
  59. example, if you want to get directories on a bunch of floppies.  The
  60. mount procedure requires you to mount the drive, get a directory, then
  61. umount it. Mtools lets you get the directory with one command.
  62.  
  63. (Dirk Hohndel:) Mtools is really fast when copying disks. I mount the
  64. SLS directory of my SUN to my linux box and use mcopy to get the files
  65. on the disks. 3 times faster than using xcopy under DOS
  66.  
  67.  
  68. QUESTION: How do I get the mtools package set up correctly?
  69.  
  70. ANSWER: The mtools package is available in source form on most Linux
  71. ftp sites.  The most recent version (As of Sept 1992) is mtools.n2,
  72. and there are linked binaries and library (.a) files available as
  73. well (for example, as part of MCC interim releases of Linux).
  74. In the n2 release of mtools, there is only one executable binary
  75. which works differently depending on its name: you can create hard
  76. or symbolic links to it named mcopy, mdel, mdir, mtype, etc; this
  77. is how the Makefile in version n2 of mtools does it, and it saves
  78. several hundred kilobytes of disk space.  Finally, you need the
  79. correct information in the file /etc/mtools, which is described below.
  80. Mtools also comes with the SLS release of linux.
  81.  
  82.  
  83. QUESTION: What is the format of the file /etc/mtools?
  84.  
  85. ANSWER: A complete entry in the file /etc/mtools contains the following
  86. fields: drive, device, fat, cylinders, heads, sectors, offset.  Two
  87. examples of entries from /etc/mtools are
  88.  
  89.      A /dev/fd0 12 80 2 15
  90.      C /dev/hda1 16 0 0 0
  91.  
  92. which defines the DOS disk A: as accessible through the device /dev/fd0,
  93. having a 12-bit FAT, 80 cylinders, 2 heads, and 15 sectors per track;
  94. DOS disk C: is accessible through the device /dev/hda1, has a 16-bit
  95. FAT, and its geometry is simply that of the hard disk where it lives.
  96. The last three numbers can be 0 if you wish; this allows mtools to
  97. try to figure out the disk's geometry itself, and perhaps to fail.
  98. A 12-bit FAT is common for floppies, but may occur in small hard
  99. disk partitions.  A 16-bit FAT is common for hard disks.
  100. This is an extract of my /etc/mtools file:
  101. A /dev/fd0 12 0 0 0     # 3.5  1.4 Meg (autodetect)
  102. B /dev/fd1 12 0 0 0     # 5.25 1.2 Meg (autodetect)
  103. C /dev/hda1 16 0 0 0    # 1st partition of my Disk
  104.  
  105.  
  106. QUESTION: Where can I find out more about mtools?
  107.  
  108. ANSWER: There are two detailed README files in the mtools.n2 distribu-
  109. tion.  These files treat compiling and using mtools.  There is a file
  110. README.mtools which treats only using mtools, which is a part of the
  111. MCC interim version of Linux.
  112.  
  113.  
  114. QUESTION: How do I use the DOS file system?
  115.  
  116. ANSWER: The DOS file system is part of the kernel.  If you have a
  117. kernel of level 97.1 or above, and an appropriate mount command, type
  118.  
  119.      mount -t msdos [-o conv=text] /dev/hda1 /dos
  120.  
  121. to mount the partition /dev/hda1 as an MS/DOS file system on the
  122. directory /dos.  You'll need a recent mount command, from at least
  123. release 97 or later of the root disk.  Recent mount commands also
  124. accept the options conv=binary|text|auto (default is binary) to
  125. specify that text end-of-lines in DOS files are to be converted to
  126. UNIX end-of-lines (by omitting carriage return characters) in no cases
  127. (binary) or in all cases (text) or in cases that don't have 'well-
  128. known binary extensions' (e.g., .EXE or .COM) (auto).
  129.  
  130.  
  131. QUESTION:  When I mount an MS-DOS disk, I get two lines of what seem to
  132. be error messages and the message: No bmap support.  Is my disk bad?
  133.  
  134. ANSWER: No.  Since the dosfs is still in ALPHA mode, the two lines are
  135. used for displaying information about the disk that was mounted, just in
  136. case you have problems.  The 'No bmap support' message means that you
  137. cannot run linux programs from that disk.  This has been fixed in the 
  138. latest release (alpha.9)
  139.  
  140.  
  141. QUESTION: I want to use the DOS file system with either conv=binary or
  142. conv=auto, but I want to convert text files from DOS to UNIX format,
  143. or from UNIX to DOS format.
  144.  
  145. ANSWER: Use the utility todos/fromdos which comes as part of the
  146. dosfs package, currently (Sept 92) in released in version 8, or
  147. use the flip utility by Rahul Dhesi.
  148.  
  149.  
  150. QUESTION: Where can I find out more about the DOS file system?
  151.  
  152. ANSWER: There is a README file included in dosfs.XX.tar.Z (the current
  153. value of XX is 9), and an abbreviated version of this in the MCC
  154. interim package. 
  155.  
  156.  
  157. QUESTION: This sounds me like a chicken and eggs problem, how can I
  158. install the mtools package at the very beginning.
  159.  
  160. ANSWER: You have to use the rawrite stuff or the mount procedure.
  161.  
  162.  
  163. QUESTION: Could someone explain how to use rawrite?
  164.  
  165. ANSWER: Well, rawrite is a DOS util, which write sequential sector of
  166. a formatted disk/floppy. When a floppy has been rawritten, you can
  167. (under Linux) untar it (use x, v, z and f flags). As an example:
  168. a) under Dos use rawrite
  169. rawrite
  170.     source: kermit.z
  171.     destination: a
  172. b) boot under Linux, and perform a tar
  173. tar zxvf /dev/fd0
  174. tar zxvp < /dev/fd0
  175.  
  176. You DO NOT NEED TO MOUNT a rawritten disk
  177.  
  178.  
  179. QUESTION: What is as86.tar.Z ?
  180.  
  181. ANSWER: It's the port of Bruce Evans' minix assembler, you need it to 
  182. be able to recompile Linux at your convenience. In fact this is ONLY
  183. used for boot/setup.S and boot/bootsect.S they create 80x86 REAL mode
  184. code. 
  185.  
  186.  
  187. QUESTION: Turbo (Microsoft) Assembler won't compile the Linux boot
  188. code.  In fact, some of the opcodes in these files look completely
  189. unfamiliar.  Why?
  190.  
  191. ANSWER: The Linux boot codes are written in Bruce Evans' minix
  192. assembler, which has the same opcodes as the original minix assembler
  193. ported to linux get as86.tar.Z Anyway there are a few differences
  194. between these and normal DOS assemblers.
  195.  
  196.  
  197. QUESTION: What about the dos emulator (dosemu)?
  198.  
  199. ANSWER: Dosemu is in alpha testing now, so it is very unstable and crashes
  200. easily.  Some programs (such as earlier versions of Turbo Pascal; TP
  201. 5.5 too) seem to work fine, but other programs such as dir /p will
  202. crash the emulator. 
  203. Look in your favorite FTP site for the dosemu kit.
  204.  
  205.  
  206. QUESTION:  I have a Stacker volume on my hard drive.  Can I access that?
  207.  
  208. ANSWER:  Yes, but you will have to do that through the dosemu program. 
  209. For more information on it, check out the file /pub/Linux/docs/stacker.doc
  210. at sunsite.unc.edu
  211.  
  212.  
  213. QUESTION:  How about OS/2 HPFS partitions, or MacIntosh/Amiga floppies?
  214. Can I mount any of them?
  215.  
  216. ANSWER:  There is no support for any of those filesystems yet.
  217.  
  218.  
  219. V. SOME CLASSICAL PROBLEMS 
  220. ==========================
  221.  
  222. QUESTION: While running du I get "Kernel panic: free_inode: bit
  223. already cleared".  Also, du produces a ENOENT error for all the files
  224. in certain of my directories.  What's going on?
  225.  
  226. ANSWER: These are both consistent with a bad file-system.  That's
  227. relatively easy to produce by not syncing before rebooting, as linux
  228. usually has 1.5MB of buffer space held in memory (unless you have <=4M
  229. RAM, in which case the buffers are only about 0.5MB). Also linux
  230. doesn't do anything special about the bit-map blocks, and as they are
  231. used often, those are the thing most likely to be in memory. If you
  232. reboot, and they haven't been written to disk ...
  233.  
  234. Just do an fsck on the device, the -a flag might repair it otherwise,
  235. the only thing to do is to reinstall the filesystem from the Images.
  236.  
  237. A sync is done only every 30 seconds normally (standard unix
  238. practice), so do one by hand (some people think you should do 3 syncs
  239. after each other, but that's superstition), or by logging out from the
  240. startup-shell, which automatically syncs the system. Unmounting a
  241. filesystem also syncs it (but of course you can never unmount root).
  242.  
  243. Another (sad) possibility is that you have bad blocks on your disk.
  244. Not very probable, as they would have to be in the inode-tables, just
  245. a couple of blocks in size. Again there aren't programs available to
  246. read a disk for bad sectors and put them in some kind of
  247. "bad-sector-file".  On IDE drives this is no problem (bad sectors are
  248. automatically mapped away).
  249.  
  250.  
  251. QUESTION: How can I partition my hard-drive to use Linux?
  252.  
  253. ANSWER: See section III of the FAQ on installation.
  254.  
  255. QUESTION: I heard something about repartition a hard disk without
  256. deleting everything on it, any clue?
  257.  
  258. ANSWER: It's not a program but a partition procedure which requires
  259. a) a partitionning program
  260. b) a sector editor
  261. The procedure itself can be found (at least) in digest#132 Vol2.
  262.  
  263.  
  264. QUESTION: What must I do to mkfs a floppy?
  265.  
  266. ANSWER: blocks are of size 1K so 1.44 floppy is 1440 blocks. The
  267. floppy has to be formatted before this will work (e.g., fdformat can
  268. do this from within Linux).
  269.  
  270.  
  271. QUESTION: I have some trouble with tar/untar; any clue ?
  272.  
  273. ANSWER: The tar provided on .96 and latter is Pax (don't know for .98)
  274. which do not accept the z flag. You can download the GNU tar at tsx-11
  275. in /pub/linux/binaries/usr.bin 
  276.  
  277.  
  278. QUESTION: I can do this as root but not as non-root, is it a bug?
  279.  
  280. ANSWER: Except for an early make utility, the problem is caused by an
  281. incorrect permission flag. The most common problems are about /tmp
  282. which should be 1777 and /dev/ttys? which might be 766. So as root do
  283.  
  284.     chmod 1777 /tmp ; chmod 766 /dev/ttys?
  285.  
  286.  
  287. QUESTION: "du" reports twice the size showed with "ls -l", is it a
  288. bug?
  289.  
  290. ANSWER: No it is not, the report is 512 bytes multiple (due to POSIX
  291. requirement), for KB you just add the -k flag. You can add a du
  292. function in your .profile which does this automatically, something
  293. like du(){ /usr/bin/du -k $* }
  294.     
  295.  
  296. QUESTION: Sometimes, I get "mount can't open lock file"; what does this
  297. means? 
  298.  
  299. ANSWER: This can happened for two reasons: 
  300. A) You try to mount something as non-root. In that case you can either
  301. retry as root, or set the setuid bit to mount as follows:
  302. - be sure that mount belongs to root, if not do 'chown root /bin/mount'
  303. - set the setuid bit with 'chmod u+s /bin/mount'
  304. BTW you have to do the same with umount (in order to be able to unmount) 
  305. Remark that it is NOT safe to allow anyone to perform mount/umount.
  306.  
  307. B) You are root. mount wants to open /etc/mtab and /etc/mtab~ - the
  308. first one for reading, the second as lock file. If there is already a
  309. mtab~ remove it. This can happen if you used once gnuemacs on mtab.
  310.  
  311. To forbid that case, just add the following entry in your /etc/rc file:
  312. rm -f /etc/mtab
  313.  
  314.  
  315. QUESTION: When I try "mount /dev/hd?? /user", I get error 2.
  316.  
  317. ANSWER: Be sure, that your mount point /user does exist; if not perform 
  318. a "mkdir /user". 
  319. BTW the error numbering is explained in /usr/include/errno.h
  320.  
  321.  
  322. QUESTION: Since I have upgrade my Linux kernel, ps won't work anymore,
  323. why? 
  324.  
  325. ANSWER: Each time you upgrade (or re-compile the kernel), you should
  326. perform a 'ps -U' (-U is for update the /etc/psdatabase). 
  327.  
  328. Every time you boot a new kernel you have to do a 'ps -U' to update
  329. the psdatabase, after doing this you can remove the system file or
  330. even have to patch the ps-suite.
  331.  
  332. BTW: sometimes a patch makes recompiling ps necessary. Sometimes you
  333. do a make clean.
  334.  
  335. NOTE: As of 0.99 there is now a ps package which uses the "/proc filesystem".
  336. This is a meta-filesystem which has an entry for each process that's
  337. running... create the directory /proc and do a 'mount -t proc /proc /proc'
  338. to see it, or else add the following entry in your /etc/fstab:
  339.  
  340.     none     /proc     proc
  341.  
  342. You can get the "procps" package from tsx-11.mit.edu in
  343. /pub/linux/BETA/procps. The nice thing about this is: you don't have to
  344. upgrade it for every kernel version (and thus ps -U is meaningless if you
  345. use procps).
  346.  
  347. MKJ wrote in c.o.l.a:
  348.  
  349. tsx-11.mit.edu:/pub/linux/BETA/procps/procps.tar.Z is the latest
  350. version of procps.  Most of the reported bugs (i.e. all I can remember
  351. at the moment ;-) have been fixed, a man page for ps has been added,
  352. and several new programs have been added and/or fixed.  A list of the
  353. stuff provided:
  354.     ps
  355.     free (a real one, from Linus)
  356.     uptime (this needs work to be good, mine is a hack)
  357.     tload (a hack, but who cares?)
  358.     xload (from drew)
  359.     fuser (perl script prototype, hopefully the real thing in a
  360.                later release)
  361.  
  362. QUESTION: Since Linux 0.96b I have a lot of core file all over
  363. my disk. How can I sweep them away ?
  364.  
  365. ANSWER: Use the following command
  366.         find / -name core -exec rm {} \;
  367.  
  368. BTW: think twice before using this command, there might be a John Core
  369. user on your system; this command will erase his mail :)
  370.  
  371. If you never want to see another core file, put this line into
  372. your /etc/rc file:
  373.     for a bash user
  374.                  ulimit -c 0
  375.     for a csh or tcsh user
  376.                 limit coredumpsize 0
  377.  
  378.  
  379.  
  380. QUESTION: I can only log-in as "root", is it normal ?
  381.  
  382. ANSWER: No, add "rm -f /etc/nologin" in your /etc/rc.local file
  383.  
  384.  
  385. VI. MISCELLANEOUS HINTS 
  386. =======================
  387. *** This section is maintained by Matt Welsh (mdw@tc.cornell.edu). Please
  388. *** mail me if you have any changes/updates/questions. Thanks -mdw
  389.  
  390. Special gcc information are located in section IX. A special section is
  391. devoted to it since it's *the* compiler of Linux. I have subsectionned
  392. this part in 3 subsections: Misc/Device Major-Minor/Serial Information.
  393.  
  394. VI.A. Misc information
  395. ~~~~~~~~~~~~~~~~~~~~~~
  396.  
  397. QUESTION: It seems that $#@! ported on linux don't run correctly, what
  398. do I do about reporting bugs?
  399.  
  400. ANSWER: (Matt Welsh) It's possible that either the program itself has a bug
  401. or that Linux has a problem that this program brings out. :) But first check
  402. that the size of the file(s) corresponds that of the files(s) on the FTP
  403. sites where it's available. If they're different, either you downloaded them
  404. incorrectly (i.e. you forgot to turn on "bin") or whoever put them on the
  405. FTP site uploaded them incorrectly. 
  406.  
  407. If that's not the problem, then post to comp.os.linux asking about the 
  408. program, to verify that it is a bug. PLEASE: when posting possible "bug 
  409. reports" include all error and output information from running/compiling
  410. the program. Just saying "it doesn't work" isn't very helpful. Also mention
  411. your specific setup, Linux version, GCC version, etc. Some of these things
  412. depend on running under certain versions and you may have missed that
  413. information. 
  414.  
  415. Note that my "ml-linux-bugs@dg-rtp.dg.com" bug reporting list has been
  416. phased out. It turns out that Linux has so few bugs, most of which are
  417. resolved on the newsgroup or through Linus before I can accumulate them
  418. and post. :) In short: if there's a bug in Linux or in Linux-ported
  419. software, it will usually be fixed in the next patchlevel or version.
  420.  
  421.  
  422. QUESTION: Has $#@! been ported to Linux?
  423.  
  424. ANSWER: First check out the FTP sites and read the monthly INFO-SHEET,
  425. as well as the new "Linux News" and the META-FAQ's (all of which are 
  426. either available on the FTP sites and/or posted to the newsgroup as they're
  427. written). Also check out the "Linux Project Registry" (posted to the 
  428. newsgroup and on the FTP sites) which lists ongoing/current Linux projects.
  429. Also look in the "old" Linux digests and mailing-list archives, kept on
  430. tsx-11.mit.edu and nic.funet.fi. Also, see if there's a GNU(*) version
  431. of the program you're looking for (which are available everywhere).
  432. Since Linux uses GCC as its native compiler, most GNU software ports
  433. directly to Linux without problems. If all else fails, ask on the
  434. mailing list or newsgroup if the program is ported and where it's
  435. available. 
  436.  
  437.  
  438. (*) GNU stands for GNU's Not Unix, which (besides being a recursive
  439. acronym) is a project started by the Free Software Foundation (the FSF)
  440. to write a freely distributable version of Unix.  The GNU kernel is
  441. named HURD, and is based on Mach.  It is currently being written, and is
  442. not yet done.  Many of the GNU utilities, however, are completed and are
  443. much more functional than the original Unix utilities.  Since they are
  444. freely available, Linux is using them as well.
  445.  
  446.  
  447.  
  448. QUESTION: I've ported $#@! to Linux, what should i do to add it in the 
  449. standard distribution?
  450.  
  451. ANSWER: (Matt Welsh) First read the previous Q/A, then talk to the
  452. maintainers of the various releases (MCC interim, SLS, and so on)
  453. about including your program with those releases. The best way to make
  454. programs available to the rest of the world is to upload it to one of
  455. the Linux FTP sites (such as tsx-11.mit.edu:/pub/incoming or
  456. sunsite.unc.edu:/pub/Linux/Incoming). 
  457.  
  458. BTW Whenever you submit binaries, please think that if you link them
  459. with shared libraries, this might cause problems for those who (gasp!)
  460. don't have the shared libraries installed. You can either link them
  461. using -static, and if someone wants to build a shared version on their
  462. own machine they can get the sources (which you should also make
  463. available) and build it themself. Or else provide the shared lib.
  464.  
  465.  
  466. QUESTION: I want to port $#@! to Linux, what are the flags?
  467.  
  468. ANSWER: Recall that Linux implements subset of SYSV and POSIX, so
  469. -DUSG and -DPOSIX work in general. 
  470.  
  471. NOTE1: SIGBUS is not there, and can be safely commented out in general.
  472. NOTE2: see section related to GCC, in the third part of this FAQ, for
  473. more details. 
  474.  
  475. VI.B. Major/Minor device number
  476. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477. *** This section is maintained by Rick Miller, any comments,
  478. *** suggestions, remarks should be mailed to him at <rick@ee.uwm.edu>
  479. *** Last Update: 17 Nov 1992 16:00:20 GMT
  480.  
  481. QUESTION: What are the device minor/major numbers?
  482.  
  483. ANSWER: Here's a preliminary listing from Rick Miller <rick@ee.uwm.edu>:
  484.   
  485.              The Linux Device List
  486.      published by rick@ee.uwm.edu (Rick Miller, Linux Device Registrar)
  487.  
  488.      Many thanks to richard@stat.tamu.edu and Jim Winstead Jr.
  489.  
  490.  Majors:
  491.   0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  492.   1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  493.   2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  494.   3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  495.   4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  496.   5.  tty .....    (character) ..    special tty: owner of its calling process.
  497.   6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  498.   7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  499.   8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  500.   9.  Scsi Tape    (character) ..    st[0-?]
  501.  10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  502.  11.  CD-ROM ..    (block) ......    scd
  503.  
  504.  Breakdown of minors by Majors:
  505.  ------------------------------
  506.  
  507.   0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  508.      Minors???    (Not yet implemented???)
  509.  
  510.   1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  511.      0.  /dev/ram
  512.      1.  (block): RAM-Disk    (character): /dev/mem
  513.      2.  /dev/kmem
  514.      3.  /dev/null
  515.      4.  /dev/port
  516.      5.  /dev/zero
  517.  
  518.   2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  519.      Minors are [drive + [4 * type]] where drive 0-3 == A:-D: (floppy)
  520.      and type is:    0: Autodetect        4: 720k in 3.5"
  521.              1: 360k in 5.25" 1.2M    5: 360k in 5.25" 1.2M
  522.              2: 1.2M in 5.25" 1.2M    6. 720k in 5.25" 1.2M
  523.              3: 360k in 3.5"        7. 1.44M in 3.5" 1.44
  524.  
  525.   3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  526.      0.  First HD (/dev/hda), whole drive including Master Boot Record.
  527.      1-4.  Partitions on the first HD.
  528.      5-8.  Logical partitions within an extended partition on first HD.
  529.      64.  Second HD (/dev/hdb), whole drive including Master Boot Record.
  530.      65-68.  Partitions on the second HD.
  531.      69-72.  Logical partitions within an extended partition on second HD.
  532.  
  533.      Notes:    BE *VERY* CAREFUL WITH /dev/hda AND /dev/hdb!!  These two
  534.          devices signify the *entire* *drive*, not just one partition.
  535.          The only things that use /dev/hda or /dev/hdb are things that
  536.          need to read/change the partition table (like fdisk).
  537.  
  538.          The names of the hard drives are not the same as under Minix.
  539.  
  540.          Linux doesn't order anything.  It perceives partitions in the
  541.          order in which they appear in the partition table.  Thus,
  542.          /dev/hd?1 may be physically after /dev/hd?2.
  543.  
  544.   4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  545.      0.  /dev/tty0:  This is the currently active Virtual Console.
  546.      1-63.  /dev/tty#:  Specific virtual consoles.
  547.      64-127.  /dev/ttys*:  Serial ports.
  548.      128-191.  /dev/pty[??]:  PTY Masters.
  549.      192-255.  /dev/pty[??]:  PTY Slaves.
  550.  
  551.      Notes:  There are several constants set in the kernel sources which
  552.          can be changed to compile a more customized kernel.  They're
  553.          found in [/usr/src]/linux/include/linux/tty.h:
  554.  
  555.              NR_CONSOLES    The number of virtual consoles.
  556.              NR_SERIALS    The number of serial lines.
  557.              NR_PTYS        The number of pty's.
  558.  
  559.   5.  tty .....    (character) ..    special tty: owner of its calling process.
  560.      0.  /dev/tty:  the tty that owns the process calling it.
  561.  
  562.   6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  563.      1-3.  Parallel (printer) ports.  (Increasable in include/linux/lp.h)
  564.  
  565.      Notes:    The number of line printers is defined by LP_NO which is
  566.          found in [/usr/src]/linux/include/lp.h.
  567.  
  568.   7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  569.      This one's just getting started.  No minor numbers are yet assigned.
  570.      It's not even in the source code.
  571.  
  572.   8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  573.      Minors numbers are [[16 * HostID] + partition]
  574.  
  575.      Notes:    The maximum number of SCSI drives is defined by MAX_SD
  576.          found in [/usr/src]/linux/kernel/blk_drv/scsi/sd.h.
  577.  
  578.         Additional note (Eric Youngdale): In the new scsi drivers
  579. there is no set maximum number of scsi disks, hence no need to fiddle
  580. with sd.h Everything autoconfigures as the system boots.
  581.  
  582. 9.  Scsi Tape    (character) ..    st[0-?]
  583.      Quoting from the source-code:
  584.                          void do_st_request(void)
  585.                          {
  586.                                  panic("There is no st driver.\n\r");
  587.                          }
  588.  
  589.      Notes:    For future reference, the maximum number of SCSI tapes
  590.          is defined by MAX_ST which is found in
  591.          [/usr/src]/linux/kernel/blk_drv/scsi/st.h.
  592.  
  593.         (E. Youngdale) The same is true here.  There is no longer any
  594. need to set MAX_ST, and it would be a bad thing to actually try.  Even
  595. though there is a MAX_SR in the cdrom code in the 0.98.5 kernel, the
  596. new scsi code effectively eliminates this as well.
  597.  
  598.  10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  599.          (If I recall, X Windows requires that
  600.           /dev/mouse be linked to one of these...)
  601.      0.  /dev/bm:  (Logitec?) bus mouse
  602.      1.  /dev/psaux:  PS/2 mouse port
  603.      2.  /dev/bm:  MicroSoft bus mouse
  604.      3.  /dev/bm:  ATI XL bus mouse
  605.  
  606.  11.  CD-ROM ..    (block) ......    scd
  607.      Minors?
  608.  
  609. From: eric@tantalus.nrl.navy.mil (Eric Youngdale)
  610. Date: 17 Nov 92 16:25:40 GMT 
  611.  
  612. > For the cdrom, the minors are just the devices
  613. > themselves.  If you have one cdrom drive, the minor is 0.  If you
  614. > have two, then the minors are 0 and 1.  Not much more to it than that.
  615.  
  616. >       For a SCSI tape, each physical device has two minor numbers
  617. > that are associated with it.  If you have two tape drives, then
  618. > minors 0 and 1 will refer to the first and second drives and the
  619. > tape will be rewound when the device is closed.  Minor numbers 128
  620. > and 129 (i.e. 128+n) also refer to the first and second physical
  621. > drives, but the tape will not be rewound after closing the device.
  622. > If you have one tape, you could create the devices with the
  623. > following commands: 
  624.  
  625. > mknod /dev/rmt0 c 9 0
  626. > mknod /dev/nrmt0 c 9 128
  627.  
  628.  
  629. NOTE: all the numbers given are in decimal form (the one you can see if
  630. you perform ls -l on /dev). 
  631.  
  632.  
  633. QUESTION: Could some one give me indication about the meaning of the
  634. IRQ's ?
  635.  
  636.  
  637. ANSWER: (alawrenc@sobeco.com:)
  638. Standard IRQ's :
  639.     IRQ 0 - Timer
  640.     IRQ 1 - Keyboard
  641.     IRQ 2 - Slave 8259 (AT)
  642.     IRQ 3 - COM 2 / COM 4
  643.     IRQ 4 - COM 1 / COM 3
  644.     IRQ 5 - (XT) Hard Disk, (AT) LPT2
  645.     IRQ 6 - Floppy Disk
  646.     IRQ 7 - LPT1
  647.  
  648. AT only IRQ  8 - Real Time Clock
  649.     IRQ  9 - Re-direct to IRQ 2
  650.     IRQ 10 - Not Defined
  651.     IRQ 11 - Not Defined
  652.     IRQ 12 - Not Defined
  653.     IRQ 13 - 80287
  654.     IRQ 14 - Hard Disk (AT)
  655.     IRQ 15 - Not Defined
  656.  
  657. QUESTION: (Chuck Boyer) Could some one clear up the devices meaning?
  658.  
  659. ANSWER: (Jim Winstead Jr)
  660. >port
  661.  
  662. This allows programs to access the hardware ports directly.  Not
  663. something you generally mess around with much.
  664.  
  665. >ptyp0-3
  666. >ptypa...tty
  667.  
  668. These are the pseudo-tty 'master' devices.  Each pty connection uses
  669. a slave-master set of tty devices.
  670.  
  671. >tty0...
  672.  
  673. tty[1-8] are the virtual consoles associated with Alt-F[1-8].  tty0 is
  674. the current virtual console (so writing something to tty0 goes to the
  675. current vc).
  676.  
  677. >tty64 I've figured out is the modem connection
  678.  
  679. Yes, that would correspond to COM1 under DOS.  However, the tty64 name
  680. is obsolete - ttys[1-4] should be used instead.
  681.  
  682. >ttyp0...
  683. >ttypa...
  684.  
  685. These are the pseudo-tty 'slave' devices.
  686.  
  687. >ttys1...
  688.  
  689. These are the serial devices.  ttys1 corresponds to COM1 under DOS,
  690. ttys2 corresponds to COM2, etc.
  691.  
  692.  
  693. VI.C Special Serial
  694. ~~~~~~~~~~~~~~~~~~~
  695. *** This section is maintained by Jim Gifford
  696. *** (jgifford@attmail,world.std}.com 
  697. *** Last update October 1992.
  698.  
  699. Douglas E. Quale:
  700. This has come up a couple of times already (including the case of
  701. serial mice as well), but for the record stty acts on stdin not
  702. stdout.  Old stty's (from V7 through BSD4.3) used stdout, but this is
  703. suboptimal and doesn't conform to POSIX.  The GNU stty you are likely
  704. using on Linux uses stdin, as does the stty distributed with BSD
  705. Networking Release 2.  (Also, ``stty -a'' is more informative about
  706. possible parameters, although it's pretty hard for me to remember what
  707. 90% of that stuff does without refering to the man page.)
  708. Jim Gifford:
  709. However, there are a few older (of mysterious origin) stty's that work
  710. on stdout(I have one myself!)
  711.  
  712. QUESTION: Is there a list somewhere where I can get help with serial
  713.    communications under Linux?
  714.  
  715. ANSWER: (Jim Gifford -- jgifford@world.std.com)
  716.    There is a list for the discussion of serial communications under
  717.    Linux.  It is for problems, drivers, new developments, etc... with
  718.    the Linux serial devices. The list is: linux-serial@stolaf.edu
  719.    To join, send mail to linux-serial-request@stolaf.edu
  720.    I hope that this list will prove beneficial to the improvement of
  721.    Linux. This list is maintained by Michael K. Johnson as
  722.    linux-serial-request@stolaf.edu
  723.  
  724. QUESTION: When I run kermit under Linux, I get "Warning, Read access
  725.    to lock directory denied". What am I doing wrong?
  726.  
  727. ANSWER: Nothing, you just need to create /usr/spool/uucp (kermit 4.6?)
  728.    or /usr/spool/locks (this is for the kermit5A), which is where kermit
  729.    like to lock files.
  730.  
  731. QUESTION: What are the major, minor numbers for the serial ports under linux?
  732.  
  733. ANSWER:   Major 4, Minor :
  734.    64      /dev/ttys0      - com1
  735.    65      /dev/ttys1      - com2
  736.    66      /dev/ttys2      - com3
  737.    67      /dev/ttys3      - com4
  738.  
  739. QUESTION: can anyone give me a sample /etc/inittab entry for login
  740.    from a pc attached to serial line /dev/ttys2?
  741.  
  742. ANSWER: "Humberto speaking :), updated by Rick Miller"
  743.    First set up the modem to turn off echo and enable auto answer, I do
  744.    this in kermit by connecting to the modem and typing "ate0s0=1"
  745.    followed by enter (w/o quotes). Then setup inittab to spawn getty on
  746.    the modem
  747.    ttys2:vt100:/etc/getty -m 1200 ttys2
  748.      (Replace "vt100" with the name of the /etc/termcap entry for the
  749.       terminal type you will use, or use "dumb" if you don't have one.)
  750.  
  751.    Then it should work. Some modems can be permanently set to disable
  752.    echo and set auto answer, see your manual.
  753.  
  754.    Jim Weigand says:
  755.      disable all messages. This will prevent getty from hanging up
  756.    your modem.
  757.    Set       For:
  758.    ATE0      No echo
  759.    ATQ1      No messages
  760.    ATS0=2    Answer 2nd ring
  761.    ATS7=60   1 minute to answer (shorter if 2400 baud)
  762.    You can use kermit to set these. Do an AT&W to save for power-up.
  763.  
  764.    Michael K. Johnson says:
  765.    If you would rather not save these commands as defaults to come up
  766.    on power-up, perhaps because you want to use your current modem
  767.    settings under a DOS communications package, you can also shove
  768.    these command out ttys? from /etc/rc (or /etc/rc.local) using
  769.    the command:
  770.       echo "<modem_settings>" > /dev/ttys?
  771.  
  772. QUESTION: How do I set parameters like parity for serial login?
  773.  
  774. ANSWER: Use stty and redirect input from the serial line.
  775. ex: stty parodd < /dev/ttys2 which gives ttys2 odd parity.  
  776. type stty -a to get an idea of possible parameters. 
  777. Or 'man stty' as well :)
  778.  
  779.  
  780. VII. MORE HINTS 
  781. =============== 
  782.  
  783. This part try to keep track of the different information
  784. that appeared in comp.os.linux and on the list since beginning of
  785. March. I tried to update it for KERNEL_VERSION, so there might be some
  786. mistakes. Moreover take care to use the correct library and include
  787. stuff, and the ad-hoc gcc you use !!!
  788.  
  789.  
  790. QUESTION: How can I backup my Hd under Linux ?
  791.  
  792. ANSWER: I know at least two ways. One possibility is tar and mtools,
  793. another possibility is the diskbackup/diskrestore of Diamano Bolla
  794. (digest37 vol. #2) which saves big hd to floppies using the
  795. stdin/stdout. These utilities have been uploaded to the major sites in
  796. file disksplit.tar.Z.
  797. An example usage (Roger Binns) is:
  798.  
  799. tar cvf - bin dev usr etc .. | compress | diskbackup
  800.  
  801. and to restore:
  802.  
  803. diskrestore | uncompress | tar xvf -
  804.  
  805. BTW: if you are on Ethernet you could send your files via tar..|rsh (tar...)
  806. or even via NFS to a host which is regularly backed up !
  807.  
  808.  
  809. QUESTION: Where is 'which' ?
  810.  
  811. ANSWER: It depends on the sh you are running:
  812. in bash     'type -path'
  813. in tcsh        it's a builtin
  814.  
  815. for rc you can try the following (untested by me) script from
  816. Kevin Brown: 
  817.  
  818. #!/bin/sh
  819. for i in `echo $PATH | sed 's/:/ /g'` ; do
  820.   for j in ""$@" ; do
  821.     if test -x "$i/$j" ; then
  822.        echo "$i/$j"
  823.          fi
  824.   done
  825. done
  826.  
  827. QUESTION: How to use setterm: for the novice?
  828.  
  829. ANSWER:The setterm utility provides access to most of Virtual Consoles
  830. (VCs) functionality.  You can set your screen up to blank at 10
  831. minutes using:
  832.             setterm -blank 10
  833.  
  834. You can set colors, and clear the screen.  For a full list of commands,
  835. just type "setterm" with no arguments.
  836.         
  837. There are a few tricks with the screen dumper can really make VCs go a 
  838. long way.  Here are a few of the common ones that I use:
  839.  
  840.         setterm dump
  841.  
  842. Dumps the contents of the current VC to screen.dump (in the current dir).
  843.                     
  844.         setterm dump 4
  845.                 
  846. Dumps the contents of VC 4 to screen.dump
  847.         
  848.         setterm -file mydumpfile -dump 4
  849.  
  850. Dump the contents of VC 4 to the file mydumpfile
  851.  
  852.         setterm -file /dev/tty0 -dump 4
  853.  
  854. Dumps the contents of VC 4 to the current VC.
  855.                     
  856.         setterm -file /dev/tty4 -dump
  857.  
  858. Dumps the contents of the current VC to VC 4.
  859.         
  860.         setterm -file /dev/ttys1 -dump
  861.                 
  862. Dumps the contents of the current VC to the serial port.
  863. Handy if you are logged on and want to paste a screen full without
  864. having to resort to doing a file transfer.
  865.  
  866.         setterm -file mydumpfile -append 4
  867.                 
  868. Appends to instead of overwriting the dump file.  Useful if you
  869. have several screens you wish to concatenate.
  870.  
  871.  
  872. QUESTION: I've tried clear/reset which exist on most of unix but it
  873. doesn't work, have I missed something? 
  874.  
  875. ANSWER: setterm -clear or setterm -reset will solve your missing.  For
  876. clear, you can also write a small script (which use the cl: part of
  877. /etc/termcap wrt your TERM), or use bash where ctrl-l will do it for
  878. you.
  879.  
  880.  
  881. QUESTION: I know there are VC, but where is the setterm stuff?
  882.  
  883. ANSWER: It's in the current distribution (i.e. on the images), the
  884. source can be found in virtcons.tar.Z at nic.
  885.  
  886.  
  887. QUESTION: I know there are shared libraries; does there exist an easy
  888. way to check an executable for sharing ? 
  889.  
  890. ANSWER: (Josh Yelon & HJ Lu) 
  891. (J.Y.) An executable which shares a library is linked with an
  892. (ordinary, non-shared) "stub" version of the library. One of the first
  893. thing this stub does (when the executable is run) is to ask the kernel
  894. to load the (big) "shared version" of the library (which is usually
  895. named /lib/lib.XX.XX) The upshot of this is that in the code for the
  896. stub (part of the executable), is the string "/lib/lib.XX.XX"; which
  897. can be searched by using 'strings' or 'grep'.
  898. (HJ. L.) if you have gcc2.11a or later the shared image is changed to
  899. /lib/libxxxx_vyy_zzz. And you should better use nm to find
  900. "__shared_lib" (nm failed on stripped executable). You can also write 
  901. a function for "file", which can even check the version number ....
  902.  
  903. (Claude Morin:) There exists at tsx-11 ldd.tar.Z If you follow
  904. the instructions, you will be able to type "ldd <executable>" to List
  905. the Dynamic Dependencies of the executables. In other words 'ldd'
  906. prints the name of the shared libraries needed by the executable,
  907. nothing appears for static one. 
  908.  
  909. QUESTION: What is the rdev program provided in the images?
  910.  
  911. ANSWER: It's a program from Werner Almesberger of ETH. With no
  912. argument it prints the first line of /etc/mtab. With one argument, a
  913. boot-image, it prints the device configured as the root device, and
  914. with two arguments, a boot image and a device, it sets the device as
  915. default root in the specified image.
  916.  
  917.  
  918. QUESTION: How to start Linux from drive B?
  919.  
  920. ANSWER: There is a DOS utility called boot_b.exe (look at DOS ftp).
  921. Another simple way is to open the box and invert the cables.
  922.  
  923.  
  924. QUESTION: The program boot_b works fine /but/ once the first disk is
  925. read the system go back to the first drive, any hints?
  926.  
  927. ANSWER: Yes, change the bootimage in just the same way that you change
  928. it to boot on the hard drive, execept that the major/minor pair is
  929. different. All these information are in the file INSTALL-0.10.
  930. Remember that if you use a sun or other endian machine, you will need
  931. to reverse the byte order when you run the filter program (also in the
  932. same file).
  933.  
  934.  
  935. QUESTION: How can I get Linux to boot directly from the harddisk?
  936.  
  937. ANSWER: (Rick) The best option right now is LILO version ALPHA.8. It
  938. has been generally agreed that the days of using "shoelace" are at an
  939. end. See Section III of this FAQ for LILO information.
  940.  
  941. QUESTION: I use shoelace, but I want to change my root partition, what
  942. is the process to get rid of it? 
  943.  
  944. ANSWER: With Norton utility you can put back a standard boot sector.
  945. Another possibility is to restore the old boot sector (the one you
  946. should have backup *before* installing shoelace).
  947.  
  948.  
  949. QUESTION: Sometimes, when I want to remove a directory, I get an error
  950. message, is it a (known) bug?
  951.  
  952. ANSWER: No, There is no bug at all, you probaly have another shell 
  953. on another VC whose working directory is either the one you try to 
  954. remove, either a subdirectory of it.
  955.  
  956.  
  957. QUESTION: I'm looking for init, getty, login, passwd stuff, where 
  958. can I find them? 
  959.  
  960. ANSWER: You should find it in shadow.tar.Z (only sources), at least 
  961. at tsx in the usr.bin directory. Many people have reported some troubles 
  962. with the *OLD* shadow-passwd (shadow-bin.tar.Z and shadow-src.tar.Z, so 
  963. do not use them anymore); an alternative might be the mcc-interim
  964. which contains standard passwd binary. There is also the Peter Orbaek's
  965. admutil-1.?.tar.Z and poeigl-1.?.tar.Z which contains source for
  966. shutdown, su, chsh, passwd and a system V init compatible. 
  967.  
  968.  
  969. QUESTION: How can I setup a user account other than root ?
  970.  
  971. ANSWER: You can either use the adduser program, either do it manually.
  972. In the later case, you have to:
  973. a) edit /etc/passwd as root and add a line of the following format:
  974. user:passwd:uid:gid:user name:home directory:login shell
  975.  
  976. user is the login name; uid is the numeric user id, it should be
  977. unique; gid is the numeric group id, this number should correspond to
  978. an entry in /etc/group. The passwd field should be left blank 'cause
  979. it is stored in an encrypted form [to set this field just use the
  980. passwd program].
  981. example
  982. faq::200:5:Marc-Michel:/home/faq:/bin/sh
  983. b) Still as root, you shoud now create the home directory and set the
  984. correct ownership.
  985. mkdir /home/faq
  986. chown faq /home/faq
  987. chgrp 5 /home/faq
  988.  
  989.  
  990. QUESTION: I've been trying to get Linux to run on my [3/4]86 box. It
  991. can't even boot. Any suggestions?
  992.  
  993. ANSWER: The most common error/problem is writing the bootimage to a
  994. low density disk. It fits, but the bootstrap code will only recognize
  995. high density disk. So try to format explicitely disk as high density:
  996. - for 3.5",  'format a: /n:18 /t:80 '
  997. - for 5.25", 'format a: /n:15 /t:80 '
  998.  
  999.  
  1000. QUESTION: Does there exist games, languages (other than C), and
  1001. anything which make the system more friendly?
  1002.  
  1003. ANSWER: Yes, among other things there are rogue and yahtzee; TeX;
  1004. Prolog, Perl.. but in general, if you want some extra tool port it to
  1005. Linux this is also a good beta-testing exercice. 
  1006.  
  1007.  
  1008. QUESTION: Whenever I use uemacs 3.1X on a symlink, the symlink does
  1009. not exist anymore, why?
  1010.  
  1011. ANSWER: (Tristram Mabbs) Since ue3.10, uemacs uses 'safe save' mode,
  1012. writing the file to a temporary and moving it OVER the original. In
  1013. the process, this deletes the original. To prevent this just add the
  1014. following in your emacs '.rc' file: set $ssave FALSE
  1015.  
  1016.  
  1017. QUESTION: Uemacs doesn't work anymore with 0.95a, whenever I want to
  1018. save a file; what can I do?
  1019.  
  1020. ANSWER: ^S and ^Q are used for flow control. One solution is ^X^W
  1021. followed by the    filename, or M-X save-file, try also ^XS it could work
  1022. for some version (not mine). Another possibility, 
  1023. if you have download the stty.tar.Z file, is to do stty -IXON 
  1024. before you first use uemacs (this can be included in your .profile).
  1025. And the last is to recompile the Peter Orbaek init-1.2 package.
  1026.  
  1027.  
  1028. QUESTION: I have an SVGA, but Linux detect an EGAc/EGAm; is it normal?
  1029.  
  1030. ANSWER: (Jim Winstead) This is correct actually. You have an EGA+ card
  1031. (SVGA) with a Color/Mono monitor. The only four possibilties are EGAc,
  1032. EGAm, *MDA and *CGA (according to the code in
  1033. kernel/chr_drv/console.c).
  1034. The true test, if Linux detects your video card, is if you press
  1035. <RETURN> at the "Press <RETURN> to see SVGA- ..." boot-time message.
  1036. If you have a SVGA  recognized card, it will ask you to choose a
  1037. screen size. If not detected, the default is 80x50 mode. 
  1038. BTW if you have no SVGA, press the <space> and you are in 80x25 mode.
  1039.  
  1040. If you have dowloaded the kernel, you can automatically skip this
  1041. query at boot-time if you set the SVGA_MODE variable in the main
  1042. Makefile before compiling a new bootimage. 
  1043.  
  1044.  
  1045. QUESTION: How can I change the keyboard repeat rate?
  1046.  
  1047. ANSWER: (Michael K Johnson) In boot/setup.S there are the lines:
  1048. ! set the keyboard repeat rate to max
  1049.     mov    ax,#0x0305
  1050.     mov    bx,0x0000
  1051.     int    0x16
  1052.  
  1053. If you don't want to change the repeat rate at all, just comment out
  1054. these lines. If you want something in the middle, change the
  1055.     mov    bx,0x000
  1056. by    mov    bx,0x??yy
  1057. where ??yy is determined by (Ralf Brown's interrupt list)
  1058. bh= delay value (0x00 = 250ms to 0x03= 1000ms (one sec))
  1059.     this is the delay before the repeat is performed
  1060. bl= repeat rate (0x00 =30/sec to 0x1f=2/sec; 0x0c=10/sec [default])
  1061.  
  1062.  
  1063. QUESTION: I compiled fdformat.c and ran it on 1.44Mb and 1.2Mb, the
  1064. results are unreadable, any clue? 
  1065.  
  1066. ANSWER: (M. Pereckas) fdformat only low-level formats the disk. to use
  1067. the fdformatted disk with DOS filesystem, run mformat on the disk.
  1068. Mformat writes DOS filesystem information but is unable to low-format
  1069. :). In order to put a Linux filesystem on a (low)formatted disk you
  1070. have to mkfs it. 
  1071.  
  1072. QUESTION: Is it possible to disable the 3-fingers salute
  1073. (ctrl-alt-del) ?
  1074.  
  1075. ANSWER: Yes, in kernel/sys.c you can read the following:
  1076.  
  1077. /*
  1078.  * this indicates wether you can reboot with ctrl-alt-del: the deault is yes
  1079.  */
  1080. static int C_A_D = 1;
  1081.  
  1082. there is also a small utility written by Linus in digest242 vol#2
  1083.  
  1084.  
  1085. QUESTION: Could some one explain the information provided at boot-time?
  1086.  
  1087. ANSWER: (Jim Winstead Jr)
  1088. > serial port at 0x03f8 is a 16450 
  1089. > serial port at 0x02f8 is a 16450 (what's that the uart chip?)
  1090.  
  1091. Right, the last number should either be 8250, 16450, 16550, or 16550a,
  1092. and on the two 16550 models, it will report that FIFO's have been
  1093. disable (16550) or enabled (16550a).
  1094.  
  1095. > 8 virtual consoles (that's how many alt-F's I can get going?                 
  1096. >      but only F1-4 actually work)
  1097.  
  1098. You can get sessions running on Alt-F[1-8], but the 'standard'
  1099. /etc/inittab only runs getty/login on Alt-F[1-4].  You can start
  1100. sessions on the other consoles by using 'doshell' or adding lines to
  1101. /etc/inittab.
  1102.  
  1103. > 4 pty's (are these the consoles F1-4?)
  1104.  
  1105. No, those are 'pseudo' ttys, which programs like MGR use to simulate
  1106. tty connections.  That's probably a gross over-simplification, but it
  1107. gives you the general idea, I think.  :)
  1108.  
  1109. > p_init: lp1 exists (0) (is that the (l)ine (p)rinter?)
  1110.  
  1111. Right.
  1112.  
  1113.  
  1114. QUESTION: What is the meaning of files ended by .T.Z (or .taz) ?
  1115.  
  1116. ANSWER: The suffix Z is for compressed files (to uncompress them use
  1117. the command `uncompress file.Z`).
  1118. The suffix T indicates a "tar file" the usual suffix is tar but, the
  1119. 14 chars filename limit of the Minix filesystem makes it cumbersome to
  1120. use .tar.Z (to untar a file ended by .T, use the command 
  1121. `tar options file.T` (see the man page for more details).
  1122.  
  1123. For the .taz file, change them as .T.Z and go-ahead.
  1124.  
  1125.     
  1126. QUESTION: I have upgraded the kernel from XX to YY (XX > YY), however the
  1127. login screen still says YY.
  1128.  
  1129. ANSWER: Just change the message in one of these files: /etc/issue and
  1130. /etc/motd. The former contains the message before the login, the later
  1131. is the one after you are logged in.
  1132.  
  1133. QUESTION: What is doshell good for ?
  1134.  
  1135. ANSWER: It's an old program provided in the early Linux version (0.12)
  1136. when the getty was not already there, it spawns a shell on any tty's.
  1137. (Mattew Gream): I do this quite often ( getty on tty1, 2, 3 and my
  1138. rc.local spawns a shell on tty4 as follows
  1139.      '/usr/bin/doshell /dev/tty4 /bin/tcsh &'
  1140.  
  1141.  
  1142. QUESTION: I don't have the kernel sources, how can I change the keyboard
  1143. language?
  1144.  
  1145. ANSWER: You can use the fixkbd program written by Laurent JULLIARD
  1146. (Laurent_JULLIARD@grenoble.hp.com). Its purpose is to fix the keyboard
  1147. map used in your kernel image. It works more or less a la "rootdev"
  1148. (or rdev). It can be found on tsx-11.mit.edu in
  1149. /pub/linux/binaries/sbin/fixkbd.tar.Z.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.